
<?php if (sizeof($cashDaily) > 0) : ?>
    Cash N&#186;   <span id="cashId"> <?php echo $cashDaily['CashDaily']['id'] ?> </span> <br>
    Caja Inicial $  <?php echo $cashDaily['CashDaily']['initial_cash'] ?> 

<?php else : ?>

    Su Caja esta Cerrada, 
    Solicite al Administrador
    que le asigne su "Efectivo Inicial"


<?php endif; ?>



<script>
    $(document).ready(function() {

        if ( <?php echo sizeof($cashDaily) ?> < 1 )
            
        {
            $('#imprimir').attr('disabled','disabled');

            if (('<?php echo $this->Session->read('Auth.User.role') ?>' !== 'admin'))
            {
                $errorCaja.dialog('open');
            }
                    
        }
                    
                
    })
</script>